package Comprehensive_01;

import java.util.Scanner;

public class WhileDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("请输要查询的星期数，如不想查询，按0退出");
            String i = sc.next();
            if (i.equals("0")) {
                break;
            }
            switch (i) {
                case "1" -> System.out.println("珍珠奶茶");
                case "2" -> System.out.println("烤牛排");
                case "3" -> System.out.println("叫花鸡");
                case "4" -> System.out.println("烧花鸭");
                case "5" -> System.out.println("酱猪肘子");
                case "6" -> System.out.println("佛跳墙");
                case "7" -> System.out.println("西北风");
                default -> System.out.println("您输入的数字有误");
            }
        }
    }
}

